package com.mengchengnet.chaperonage.adapter;

import android.content.Context;

import com.mengchengnet.chaperonage.domain.base.BaseInfo;

import java.util.List;

/**
 * Created by Administrator on 16-2-22.
 */
public class BaseInfoAdapter extends DropDownMenuAdapter<BaseInfo> {

    public BaseInfoAdapter(Context context, int resource, List<BaseInfo> objects) {
        super(context, resource, objects);
    }

    @Override
    public String getId(int position) {
        return ((BaseInfo) getItem(position)).getId();
    }

    @Override
    public String getName(int position) {
        return ((BaseInfo) getItem(position)).getValue();
    }
}
